package com.mikelouis.test.scala.proginscala.chapter20

/**
 * Created by yuazhu on 1/26/2015.
 */
object InnerClassInScala {
  def main(args: Array[String]) {
    // instantiate an inner class
    val o1 = new Outer
    println(o1)
    val i1 = new o1.Inner
    println(i1)
  }

  /**
   * in Scala, inner class are expressed as <b>Outer#Inner</b>,
   * not Outer.Inner
   */
  class Outer {

    class Inner

  }

}
